package org.dromara.crawler.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.crawler.domain.CrawlerTask;

/**
 * 抓取任务单表Service接口
 *
 * @author shup
 * @date 2025-6-18
 */
public interface CrawlerTaskService extends IService<CrawlerTask>  {

    IPage<CrawlerTask> queryByPage(CrawlerTask crawlerTask, PageQuery pageQuery);

    boolean deleteTask(Long taskId);

    Boolean runTask(Long taskId);

    Boolean stopTask(Long taskId);

}
